/*
 * 作者:熊猫
 * 日期:2017 - 3 - 14 8 - 14 - 59
 *
 */

package net.lainiao.other.demo3;

/**
 * Created by Administrator on 2017/3/14.
 */
public class MyMain {
    public static void main(String[] args) {
        for (int i = 0; i < 50; i++) {
            Thread sub=new Thread(new Biz());
            sub.start();
            try {
                sub.join();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            for (int j = 1; j <=100 ; j++) {
                System.out.println("MainThread run:"+j);
            }
        }
    }
}

class Biz implements Runnable{
    @Override
    public void run() {
        for (int i = 1; i <=10 ; i++) {
            System.out.println("childThread run "+i);
        }
    }
}
